package com.lyj.springcloud.entities;

import lombok.Data;
import org.omg.CORBA.PUBLIC_MEMBER;

@Data

public class CommonResult<T> {
    private String code;
    private String msg;
    private T data;

    public CommonResult(String code, String msg,T data) {
       this.code = code;
       this.msg = msg;
       this.data = data;
    }

    public CommonResult(String msg) {
        this.code = "200";
        this.msg = msg ;
    }

    public CommonResult() {
        this.msg = "success" ;
        this.code = "200";
    }


    public CommonResult(String code,String msg) {
        this(code,msg,null);
    }
}
